using System;
using System.Data;
using System.Collections.Generic;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dimok.Data.DataSources;

namespace Data.DataSources {
	public class USIXExportDataSource : ObjectDataSourceBase {
		string _selectViewName = "usix.v_CustomerFile_Export_List";
		public override string SelectViewName { get { return _selectViewName; } }
		public override string InsertViewName { get { throw new NotImplementedException(); } }
		public int LoanID { set { SetSelectParameter(LOAN_ID, value); } }
		public int UsixID { set { SetSelectParameter(USIX_ID, value); } }
		public string LoanIDs { set { SetSelectParameter("LoanIDs", value); } }
		public override DataView SelectEx(int LoanID) {
			return Select("LoanID=@LoanID", LoanID);
		}
		public DataView SelectEx(string LoanIDs) {
			UseNoLock = false;
			if (LoanIDs.Contains(",")) LoanIDs = Lib.MakeIDsXml(LoanIDs);
			_selectViewName = "CustomerFile_Export_List(@LoanIDs)";
			return Select("", LoanIDs);
		}
	}
}